﻿// Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

namespace DotNetCore.CAP.Dashboard.NodeDiscovery
{
    public interface INodeDiscoveryProvider
    {
        IList<Node> GetNodes(CancellationToken cancellationToken = default);

        Task RegisterNode(CancellationToken cancellationToken = default);
    }
}